﻿using System;
using System.Collections.Generic;
using System.Text;

namespace HB.MVVM
{
    interface IObjectList
    {
        Dictionary<string, T2> GetList<T2>();

    }
    class ObjectList<T> : IObjectList
    {
        Dictionary<string, T> List { get; set; }
        public Dictionary<string, T2> GetList<T2>()
        {
            if (List == null)
            {
                List = new Dictionary<string, T>();
            }
            return List as Dictionary<string, T2>;
        }
    }
}
